<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html">

<p style="background-color:	#E68A2E">
</p>



<h:body style="background-color:#FFCC99">
   <h:form>
<div align="right">
   
      <h:commandButton value="Logout" action="#{loginBean.logout}"></h:commandButton>
     
</div>
<center>
<h:graphicImage value="writing.png" style="height: 9px; width: 1259px; " />
		<h1>Hello #{loginBean.username}!
		</h1>
		<h:graphicImage value="writing.png" style="height: 9px; width: 1259px; " />
</center>


<p style="background-color:	#E68A2E">
    
</p>

<center>
	<table >
       	<tr>
	     	<th>
	     	<p ><h2 style=" background-color: #FFCC99; color: black; font-size: 23">Alege un chestionar: </h2></p>
	     
	        </th>
	    </tr>

			<ui:repeat value="#{userBean.chestionare}" var="chestionar">
			<tr> <td>
				<h:commandLink value="#{chestionar.nume}"
					action="#{userBean.viewChestionar}">
					<f:param name="chestionarSelected" value="#{chestionar.id}" />
				</h:commandLink>
			</td></tr>
			</ui:repeat>

	</table>
</center>
  </h:form>
</h:body>
</html>
